﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TTEngine.MapObjects
{
    public class Chair : MapObject
    {
        //constructor
        public Chair()
            : base()
        {
            CanTake = true;
            CanReady = true;
            HandsRequired = 2;
            UnitWeight = 4;
            Flamability = 20;
            BurnLifetime = Globals.RandomIntFromTo(5, 10);
            DressingLevel = 1;
            BlocksMovement = true;
            Damage = new DamageExpressionList("1z6=b");
        }

        //clone
        public override MapObject Clone()
        {
            return new Chair();
        }

        //might break
        public override bool BreaksWhenStressed(StressType st)
        {
            return Globals.RandomIntFromTo(1, 100) < 50;
        }
    }
}
